"""
	Developerd by Andrea Stagi <stagi.andrea@gmail.com>
	TwittLine - the client twitter on your terminal
	Copyright (C) 2010 Andrea Stagi

	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/>.
"""

import twittutils

PAGEINC = 20
CMD_INC = "+"
CMD_DEC = "-"
CMD_DIRECT = "dirmess"
CMD_UPDATE = "update"
CMD_DELETE = "delete"
CMD_RETWEET = "retweet"
CMD_RETWEETS = "retweets"
CMD_REPLY = "reply"
CMD_QUIT = "quit"
CMD_PROFILE = "profile"
CMD_HOME = "home"
CMD_SEARCH = "search"
CMD_FOLLOW = "follow"
CMD_UNFOLLOW = "unfollow"
CMD_MORE = "more"
CMD_LESS = "less"
CMD_VIEWFOLLOWING = "following"
CMD_VIEWFOLLOWERS = "followers"
CMD_VIEWFAVS = "favorites"
CMD_HELP="?"
CMD_NOHELP="no?"
CMD_WATCH="watch"
CMD_FAV="favorite"
CMD_UNFAV="unfavorite"
CMD_MESS="message"

CMD_R_INC = "+"
CMD_R_DEC = "-"
CMD_R_DIRECT = "drm"
CMD_R_UPDATE = "upd"
CMD_R_DELETE = "del"
CMD_R_RETWEET = "rtw"
CMD_R_RETWEETS = "rtws"
CMD_R_REPLY = "rpy"
CMD_R_QUIT = "q"
CMD_R_PROFILE = "pr"
CMD_R_HOME = "hm"
CMD_R_SEARCH = "sr"
CMD_R_FOLLOW = "flw"
CMD_R_UNFOLLOW = "unflw"
CMD_R_MORE = "mr"
CMD_R_LESS = "ls"
CMD_R_VIEWFOLLOWING = "flwg"
CMD_R_VIEWFOLLOWERS = "flws"
CMD_R_VIEWFAVS = "favs"
CMD_R_HELP="?-"
CMD_R_WATCH="w"
CMD_R_FAV="fav"
CMD_R_UNFAV="unfav"
CMD_R_MESS="m"

MESS_EXEPCTRLC=" Forced exit with ctrl-c.."

CMD_COLORS="-c"
CMD_MAN="-h"
CMD_ABOUT="-a"

EXIT_OK = 0

TIME_REF=20
TIME_AMM=5

HELP_PAGES_LIST=[CMD_HOME,CMD_PROFILE,CMD_SEARCH,CMD_RETWEETS,CMD_DIRECT,CMD_MESS,CMD_WATCH ]
HELP_PAGES_R_LIST=[CMD_R_HOME,CMD_R_PROFILE,CMD_R_SEARCH,CMD_R_RETWEETS,CMD_R_DIRECT,CMD_R_MESS,CMD_R_WATCH ]

HELP_PAGES=twittutils.createHelp(HELP_PAGES_LIST)
HELP_R_PAGES=twittutils.createHelp(HELP_PAGES_R_LIST)

HELP_PROFILEME_LIST=[CMD_INC , CMD_DEC , CMD_UPDATE , CMD_MORE , CMD_LESS , CMD_DELETE ,CMD_VIEWFAVS, CMD_FAV, CMD_UNFAV, CMD_VIEWFOLLOWING , CMD_VIEWFOLLOWERS ]
HELP_PROFILEME_R_LIST=[CMD_R_INC , CMD_R_DEC , CMD_R_UPDATE , CMD_R_MORE , CMD_R_LESS , CMD_R_DELETE ,CMD_R_VIEWFAVS, CMD_R_FAV, CMD_R_UNFAV, CMD_R_VIEWFOLLOWING , CMD_R_VIEWFOLLOWERS ]

HELP_PROFILE_ME=twittutils.createHelp(HELP_PROFILEME_LIST)
HELP_R_PROFILE_ME=twittutils.createHelp(HELP_PROFILEME_R_LIST)

HELP_PROFILE_LIST=[CMD_INC , CMD_DEC , CMD_UPDATE , CMD_MORE , CMD_LESS ,CMD_FOLLOW, CMD_UNFOLLOW, CMD_DELETE ,CMD_VIEWFAVS, CMD_FAV, CMD_UNFAV, CMD_REPLY , CMD_RETWEET , CMD_VIEWFOLLOWING , CMD_VIEWFOLLOWERS ]
HELP_PROFILE_R_LIST=[CMD_R_INC , CMD_R_DEC , CMD_R_UPDATE , CMD_R_MORE , CMD_R_LESS ,CMD_R_FOLLOW,CMD_R_UNFOLLOW, CMD_R_DELETE , CMD_R_VIEWFAVS,CMD_R_FAV, CMD_R_UNFAV, CMD_R_REPLY , CMD_R_RETWEET, CMD_R_VIEWFOLLOWING , CMD_R_VIEWFOLLOWERS ]

HELP_PROFILE=twittutils.createHelp(HELP_PROFILE_LIST)
HELP_R_PROFILE=twittutils.createHelp(HELP_PROFILE_R_LIST)

HELP_SEARCH_LIST=[CMD_INC , CMD_DEC , CMD_FOLLOW,CMD_UNFOLLOW ]
HELP_SEARCH_R_LIST=[ CMD_R_INC , CMD_R_DEC , CMD_R_FOLLOW,CMD_R_UNFOLLOW  ]

HELP_SEARCH=twittutils.createHelp(HELP_SEARCH_LIST)
HELP_R_SEARCH=twittutils.createHelp(HELP_SEARCH_R_LIST)


HELP_FAVS_LIST=[CMD_INC , CMD_DEC , CMD_FAV, CMD_UNFAV ]
HELP_FAVS_R_LIST=[ CMD_R_INC , CMD_R_DEC , CMD_R_FAV, CMD_R_UNFAV  ]

HELP_FAVS=twittutils.createHelp(HELP_FAVS_LIST)
HELP_R_FAVS=twittutils.createHelp(HELP_FAVS_R_LIST)

HELP_DIRECT_LIST=[CMD_INC , CMD_DEC , CMD_REPLY, CMD_DELETE ]
HELP_DIRECT_R_LIST=[ CMD_R_INC , CMD_R_DEC , CMD_R_REPLY, CMD_R_DELETE  ]

HELP_DIRECT=twittutils.createHelp(HELP_DIRECT_LIST)
HELP_R_DIRECT=twittutils.createHelp(HELP_DIRECT_R_LIST)


HELP_HOME_LIST=[CMD_INC , CMD_DEC , CMD_UPDATE , CMD_DELETE , CMD_VIEWFAVS, CMD_FAV, CMD_UNFAV, CMD_REPLY , CMD_RETWEET]
HELP_HOME_R_LIST=[CMD_R_INC , CMD_R_DEC , CMD_R_UPDATE , CMD_R_DELETE ,CMD_R_VIEWFAVS, CMD_R_FAV, CMD_R_UNFAV, CMD_R_REPLY , CMD_R_RETWEET ]

HELP_HOME=twittutils.createHelp(HELP_HOME_LIST)
HELP_R_HOME=twittutils.createHelp(HELP_HOME_R_LIST)

HELP_RETW_LIST=[CMD_INC , CMD_DEC , CMD_UPDATE , CMD_DELETE ,CMD_FAV, CMD_UNFAV, CMD_REPLY , CMD_RETWEET ]
HELP_RETW_R_LIST=[CMD_R_INC , CMD_R_DEC , CMD_R_UPDATE , CMD_R_DELETE ,CMD_R_FAV, CMD_R_UNFAV, CMD_R_REPLY , CMD_R_RETWEET ]

HELP_RETW=twittutils.createHelp(HELP_RETW_LIST)
HELP_R_RETW=twittutils.createHelp(HELP_RETW_R_LIST)

